<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">
	
	<h:head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	</h:head>		
	
	<h:body>
		<ui:composition template="/WEB-INF/facelets/template.xhtml">	
		<ui:define name="body">	
		<f:view>
			<p:ajaxStatus onstart="statusDialog.show();" onsuccess="statusDialog.hide();"/>               
			<p:dialog modal="true" widgetVar="statusDialog" header="Loading"  draggable="false" closable="false">  
   				<p:graphicImage value="#{facesContext.externalContext.request.scheme}://#{facesContext.externalContext.request.serverName}:#{facesContext.externalContext.request.serverPort}#{facesContext.externalContext.request.contextPath}/images/ajaxloadingbar.gif" />   
			</p:dialog>
			<h:form id="formDialog">
				<p:messages id="msg" showDetail="true"/>
				<p:growl id="men"/>
					<p:panel id="panelEventos" header="Eventos">							
						<h:panelGrid columns="2" id="panelGrid" >
												 	<h:outputText id="msgIdE" value="IdE"/>
						 	<p:inputText id="txtIdE" binding="#{eventosView.txtIdE}">
						 		<p:ajax update="panelEventos,msg,panelBotones" listener="#{eventosView.listener_txtId}"/>
						 	</p:inputText>	
																		
													<h:outputText id="msgAltitud" value=" Altitud"/>
							<p:inputText id="txtAltitud" disabled="true" binding="#{eventosView.txtAltitud}"/>
													<h:outputText id="msgDireccion" value=" Direccion"/>
							<p:inputText id="txtDireccion" disabled="true" binding="#{eventosView.txtDireccion}"/>
													<h:outputText id="msgHora" value=" Hora"/>
							<p:inputText id="txtHora" disabled="true" binding="#{eventosView.txtHora}"/>
													<h:outputText id="msgLatitud" value=" Latitud"/>
							<p:inputText id="txtLatitud" disabled="true" binding="#{eventosView.txtLatitud}"/>
													<h:outputText id="msgNombre" value=" Nombre"/>
							<p:inputText id="txtNombre" disabled="true" binding="#{eventosView.txtNombre}"/>
													<h:outputText id="msgIdTe_TipoEventos" value=" IdTe_TipoEventos"/>
							<p:inputText id="txtIdTe_TipoEventos" disabled="true" binding="#{eventosView.txtIdTe_TipoEventos}"/>
												
																				<h:outputText id="msgFecha" value=" Fecha"/>
														<p:calendar showOn="button" navigator="true" locale="en" 
							binding="#{eventosView.txtFecha}" >
								<p:ajax event="dateSelect" listener="#{eventosView.listener_txtFecha}" update="men" />
							</p:calendar>
																	   </h:panelGrid>
				</p:panel>
	   			<p:panel id="panelBotones">
					<div align="center">					
						<p:commandButton id="btnSave" binding="#{eventosView.btnSave}" disabled="true" value="Save" action="#{eventosView.action_save()}" update="panelEventos,msg,panelBotones" />
						<p:commandButton id="btnDelete" binding="#{eventosView.btnDelete}" disabled="true" value="Delete" action="#{eventosView.action_delete_master()}" onclick="if(!confirm('Do you really want to delete this Entry?')){return false;}" update="panelEventos,msg,panelBotones" />
						<p:commandButton id="btnClear" value="Clear" action="#{eventosView.action_clear()}" update="panelEventos,msg,panelBotones" />
					</div>
				</p:panel>			
			</h:form>
		</f:view>
			</ui:define>		
		</ui:composition>	
	</h:body>	
</html>	